//! @author Deng
//! @date 2022/07/02 17:44:05
//! @desc 
use std::{env, collections::LinkedList};


mod advance;
mod tokio;
mod basic;
mod db;
mod my_study;
mod web_server;
mod async_learn;

use my_study::sqlite;

pub fn base64_encode_file() {
    //接收参数
    let args: Vec<String> = env::args().collect();
    if args.len() < 2 {
        println!("参数错误");
        return;
    }
    if let Some(base64) = my_study::base64_utils::encode_file(&args[1]) {
        println!("{}", base64);
    }
}

pub fn test_linkelist(){
   //advance::advanced19_thread_study::wait_notify_demo1();
   let mut list: LinkedList<i32> = LinkedList::new();
   list.push_back(32);
   let e = list.pop_front();
   if let Some(n) = e {
       println!("{}", n);
   }
}

pub fn test_sqlite3(){
   sqlite::test_sqlite();

}

/// @author Deng
/// @date 2022/07/02 17:44:15
/// @desc 
fn main() {
  test_sqlite3();
}
